/* ReMeMore-Moi
 * Code license: Apache License 2.0
 * WWW : http://code.google.com/p/rememore-moi/
 * */
package info.fredericb.rememoremoi;

/**
 *
 * @author fred
 */
public class ContactInfo {

    private String raison,  adresse, numero;

    protected ContactInfo(String nb) {
		this.numero = nb;
	}

	public String getRaison() {
        return this.raison;
    }

    public String getAdresse() {
        return this.adresse;
    }
    
    public String getNumber(){
    	return this.numero;
    }
    
    public String getLocalNumber(){
    	if(this.numero.startsWith("+33"))
    		return "0" + this.numero.substring(3);
    	else if(this.numero.startsWith("33"))
    		return "0" + this.numero.substring(2);
    	else
    		return this.numero;
    }
    
    public void setAdresse(String s){
    	this.adresse = s;
    }
    
    public void setNumber(String s){
    	this.numero = s;
    }
    
    public void setRaison(String s){
    	this.raison = s;
    }
}

